export function generateMultiplicationDivisionSimplicity(difficulty: 1 | 2 = 1): {
  content: string;
  solution: string;
  difficulty: number;
  knowledge_code: string;
  question_type: string;
} {
  // 难度1: 简单连除或乘除混合 (a÷b÷c)
  // 难度2: 含括号的复杂简便计算 (a×b÷c 或 a÷(b×c))
  
  if (difficulty === 1) {
    const a = Math.floor(Math.random() * 500) + 100;
    const b = Math.floor(Math.random() * 10) + 2;
    const c = Math.floor(Math.random() * 10) + 2;
    const productBC = b * c;
    return {
      content: `${a}÷${b}÷${c}`,
      solution: `${a}÷${b}÷${c} = ${a}÷(${b}×${c}) = ${a}÷${productBC} = ${Math.floor(a / productBC)}`,
      difficulty,
      knowledge_code: '3.2.3_chengchufa-de-jianbian-jisuan',
      question_type: 'fill_in_blank'
    };
  } else {
    const a = Math.floor(Math.random() * 1000) + 500;
    const b = Math.floor(Math.random() * 20) + 5;
    const c = Math.floor(Math.random() * 20) + 5;
    const d = Math.floor(Math.random() * 20) + 5;
    const productCD = c * d;
    return {
      content: `${a}×${b}÷${c}÷${d}`,
      solution: `${a}×${b}÷${c}÷${d} = ${a}×${b}÷(${c}×${d}) = ${a*b}÷${productCD} = ${Math.floor(a*b / productCD)}`,
      difficulty,
      knowledge_code: '3.2.3_chengchufa-de-jianbian-jisuan',
      question_type: 'fill_in_blank'
    };
  }
}